pull: Ensure console state for multiple GPG verification messages
authorColin Walters <walters@redhat.com>
Mon, 1 Jun 2015 21:39:39 +0000 (17:39 -0400)
committerColin Walters <walters@verbum.org>
Tue, 2 Jun 2015 13:07:28 +0000 (09:07 -0400)
If there are multiple signatures to verify, we would attempt to
display them multiple times, but we can only call
`gs_console_end_status_line()` if the console has been enabled.

Ensure we turn back on the console after printing our status.  This
will result in extra newlines, but fixing that cleanly would require a
saner GSConsole API.

src/ostree/ot-builtin-pull.c

index 874e6dae183a5c6516347f4d08535113257ce4ea..9192e7cc5bd040d75d54aa5e24e62d165d478042 100644 (file)
@@ -54,6 +54,8 @@ gpg_verify_result_cb (OstreeRepo *repo,
 
   g_print ("\n");
   ostree_print_gpg_verify_result (result);
+
+  gs_console_begin_status_line (console, "", NULL, NULL);
 }
 
 gboolean